package com.foreknow.demo7;

/**
 * private私有的：只有当前类可以访问
 * set方法作用： 给属性设置一个值
 * get方法作用: 获取某个属性的值
 */
public class Student {
    private int sid;
    private String name;
    private int age;

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}

